var app = angular.module('ZJPC');

app.controller('BayoutController', ['$scope', '$state','$uibModalInstance', '$http', 'DataService','data', function($scope, $state, $uibModalInstance, $http, DataService,data) {

	$scope.cancel = function() {
      $uibModalInstance.dismiss('cancel');
    };

    $scope.loading = false;
    $scope.data= data;
    $scope.loading = true;

    $scope.baseInfo = function(){
		var url = $state.href('app.file.carfile.basic',{name:data.cphm});
	  	window.open(url,'_blank');
	}

}]);
